package com.ict.bills.controller;

import com.ict.bills.service.BilltypeService;
import com.ict.bills.utils.DataGridView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: Lizbeth9421
 * @Date: 2021/10/10/21:52
 */
@Controller
@RequestMapping("/billtype")
public class BillTypeController {
    @Autowired
    private BilltypeService service;

    @ResponseBody
    @GetMapping("/loadAllBillType")
    public DataGridView loadAllBillType() {
        return new DataGridView(0L, service.loadAllBillType());
    }
}
